﻿<Window x:Class="NicoView.View.NicoViewBroadcastConsolWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:NicoView.View"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
        xmlns:Behaviors ="clr-namespace:NicoView.View.Behaviors"
        WindowStyle="ToolWindow"
        ResizeMode="CanResizeWithGrip"
        Title="{Binding Broadcasting, Mode=OneWay, Source={StaticResource resources}}" Height="600" Width="780" Topmost="True" DataContext="{Binding NicoViewBroadcastConsolViewModel, Mode=OneWay, Source={StaticResource locator}}">


    <i:Interaction.Triggers>
        <i:EventTrigger EventName="Loaded">
            <i:InvokeCommandAction Command="{Binding LoadCommand}"  />
        </i:EventTrigger>
        <i:EventTrigger EventName="Closed">
            <i:InvokeCommandAction Command="{Binding SaveCommand}"  />
        </i:EventTrigger>
        
        <Behaviors:BroadcastStartingMessageTrigger>
            <ei:CallMethodAction MethodName="Close"/>
            <Behaviors:ShowBroadcastSplashScreenWindowAction/>
            
        </Behaviors:BroadcastStartingMessageTrigger>
        
    </i:Interaction.Triggers>



    <local:NicoViewBroadcastConsolControl  />


</Window>
